﻿using System;

namespace Terraria.UI
{
	// Token: 0x02000116 RID: 278
	public struct StyleDimension
	{
		// Token: 0x06000C36 RID: 3126 RVA: 0x0000C7F8 File Offset: 0x0000A9F8
		public StyleDimension(float pixels, float precent)
		{
			this.Pixels = pixels;
			this.Precent = precent;
		}

		// Token: 0x06000C37 RID: 3127 RVA: 0x0000C7F8 File Offset: 0x0000A9F8
		public void Set(float pixels, float precent)
		{
			this.Pixels = pixels;
			this.Precent = precent;
		}

		// Token: 0x06000C38 RID: 3128 RVA: 0x0000C808 File Offset: 0x0000AA08
		public float GetValue(float containerSize)
		{
			return this.Pixels + this.Precent * containerSize;
		}

		// Token: 0x04001009 RID: 4105
		public static StyleDimension Fill = new StyleDimension(0f, 1f);

		// Token: 0x0400100A RID: 4106
		public static StyleDimension Empty = new StyleDimension(0f, 0f);

		// Token: 0x0400100B RID: 4107
		public float Pixels;

		// Token: 0x0400100C RID: 4108
		public float Precent;
	}
}
